home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / prog / dasv10_.arj / INITMOUS.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-10  |  281 b   |  20 lines

  1. // mouse.lib function initmouse()
  2. # include <dos.h>
  3.  
  4. int initmouse(void){
  5. long far *mvector;
  6. union REGS in, out;
  7.  
  8.     FP_SEG(mvector)=0x0000;
  9.     FP_OFF(mvector)=0x00cc;
  10.  
  11.     if (*mvector){
  12.     in.x.ax=0;
  13.     int86(0x33, &in, &out);
  14.     return (out.x.ax);
  15.     }
  16.     else return(0);
  17. }
  18.  
  19.  
  20.